package com.xbongbong.pro.enums.workflow;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 *
 * 工作流系统字段，主要是为了给审批节点和抄送节点的标题使用
 * @author 吴峰
 * @date 2021/06/04 11:26
 */
@Getter
public enum WorkflowSystemFieldEnum {
    /***
     * 即触发表单提交人
     */
    COMMIT_USER("commitUser", "constant.WorkflowExplainServiceImpl.commit_user"),

    /***
     * 即触发表单名称
     */
    TRIGGER_FORM("triggerForm", "constant.WorkflowExplainServiceImpl.trigger_form"),
    ;


    private String property;

    private String desc;

    WorkflowSystemFieldEnum(String property, String desc) {
        this.property = property;
        this.desc = desc;
    }

    public String getDesc() {
        return I18nMessageUtil.getMessage(desc);
    }
}
